package top.zuli.package01.class16;

import org.junit.Test;

import java.time.MonthDay;
import java.time.Year;
import java.time.YearMonth;

public class Demo3 {
    @Test
    public void nowMethodTest2(){
        Year year = Year.now();
        System.out.println(year);
        YearMonth month = YearMonth.now();
        System.out.println(month);
        MonthDay day = MonthDay.now();
        System.out.println(day);
    }
}

/*
public class Demo3 {
    @Test
    public void nowMethodTest2(){
        Year year = Year.now();
        System.out.println(year);
        YearMonth month = YearMonth.now();
        System.out.println(month);
        MonthDay day = MonthDay.now();
        System.out.println(day);
    }
}
*/
